package nosqlconnect.perspectives;


import nosqlconnect.views.ConnectionsView;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class NoSQLPerspective implements IPerspectiveFactory {

	@Override
	public void createInitialLayout(IPageLayout layout) {
		defineLayout(layout);
	}

	private void defineLayout(IPageLayout layout) {
		
		layout.addShowViewShortcut(ConnectionsView.class.getName());
		layout.setEditorAreaVisible(true);
        String editorArea = layout.getEditorArea();       

        IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.2f, editorArea);
        topLeft.addView(ConnectionsView.class.getName());
        
	}
}
